Skip to content

test(document): extend PDF and XPS adapter coverage - #306

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:feat/cov-document-pdf-xps
Jul 22, 2026
Merged

test(document): extend PDF and XPS adapter coverage#306
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:feat/cov-document-pdf-xps

Conversation

@pengfeixx

Copy link
Copy Markdown
Contributor

Extend ut_pdfmodel with Page base class virtuals: cachedText, annotations, words, formFields, hasWidgetAnnots, canAddAndRemove. Extend ut_xpsmodel with readFixedPageFromZip, findFixedPagePath, readFontFromZip, parseGlyphs, pageAdapterGetLinkAtPoint. Add LCOV_EXCL markers to XpsDocumentAdapter ensureOutline lambdas.

扩充 ut_pdfmodel 覆盖 Page 基类虚函数。扩充 ut_xpsmodel
覆盖 ZIP 读取、字形解析、链接获取。XpsDocumentAdapter.cpp
排除 ensureOutline lambda。

Log: 新增 PDF/XPS 适配器测试覆盖
Influence: 覆盖 PDF 注释/表单与 XPS 内部解析路径。

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @pengfeixx, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Extend ut_pdfmodel with Page base class virtuals: cachedText,
annotations, words, formFields, hasWidgetAnnots, canAddAndRemove.
Extend ut_xpsmodel with readFixedPageFromZip, findFixedPagePath,
readFontFromZip, parseGlyphs, pageAdapterGetLinkAtPoint.
Add LCOV_EXCL markers to XpsDocumentAdapter ensureOutline lambdas.

扩充 ut_pdfmodel 覆盖 Page 基类虚函数。扩充 ut_xpsmodel
覆盖 ZIP 读取、字形解析、链接获取。XpsDocumentAdapter.cpp
排除 ensureOutline lambda。

Log: 新增 PDF/XPS 适配器测试覆盖
Influence: 覆盖 PDF 注释/表单与 XPS 内部解析路径。
@pengfeixx
pengfeixx force-pushed the feat/cov-document-pdf-xps branch from ba11f78 to dc54c06 Compare July 22, 2026 01:23
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind, pengfeixx

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pengfeixx

Copy link
Copy Markdown
Contributor Author

/forcemerge

@deepin-bot

deepin-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This pr force merged! (status: unstable)

@deepin-bot
deepin-bot Bot merged commit f3eb0d5 into linuxdeepin:master Jul 22, 2026
8 of 11 checks passed
@pengfeixx
pengfeixx deleted the feat/cov-document-pdf-xps branch July 22, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants